home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
macros
/
mathematica
/
tex-mma.tar_z
/
tex-mma
/
PSFile.m
< prev
next >
Wrap
Text File
|
1991-02-25
|
821b
|
29 lines
(* 2/25/1991 Dan Dill dan@chem.bu.edu *)
PSFile::usage = "PSFile[-graphics-, \"file\"].
Capture a Mathematica graphic object in a PostScript file. Quotes are required
around the file name and suffix `.ps' is added. The graphic object is
preprocessed through psfix to prepend the Mathematica PostScript procedures to
the file, so that it may be printed directly with lpr. For example,
\n
\n
\t PSFile[myplot, \"p4/myplot\"]
\n
\n
will convert the Mathematica graphic myplot to the PostScript file myplot.ps
in the subdirectory p4 of the current directory."
PSFile::file = "Graphics being processed (with prolog) to file \"`1`\".";
PSFile[g_, f_String] := Block[{filename},
filename = StringJoin[f, ".ps"];
Message[PSFile::file, filename];
Display[StringJoin[
"! ",
"psfix",
" > ",
filename
], g
];
];